import fetch from 'utils/fetch';
//查询用户
export function searchPageSize(page, size,obj) {
    return fetch({
        url: `api/admin/baseUser/search3/${page}/${size}`,
        method: 'post',
        data:obj
    });
}

//查询小区树

export function getTreeOfCompany() {
    return fetch({
        
        url: `api/cb/flCommunity/getTreeOfCompany`,
        method: 'post'
    });
}
//查询用户已经绑定的小区

export function search(obj) {
    return fetch({
        
        url: `api/cb/flUserCommunity/search`,
        method: 'post',
        data:obj
    });
}
//修改

export function updateTree(obj) {
    return fetch({
        // api/admin/baseUser/search2/{page}/{size}
        url: `api/cb/flUserCommunity/${userId}`,
        method: 'post',
        data:obj
    });
}